package demo1;

//public class Main {
//    long val;
//    public void Main(long param){
//        val = param;
//    }
//
//
//    public static void main(String[] args) {
//        Main a,b;
//        a = new Main();
//        b = new Main(5);
//    }
//}

public class Main{
    public static void main(String[] args){
        String str1 = "hello";
        String str2 = "hello";
        String s = "he";
        String str3 = s + "llo";



        System.out.println(str1.equals(str2));
        System.out.println(str1 == str2);

        System.out.println(str1.equals(str3));
        System.out.println(str1 == str3);

        System.out.println(str2.equals(str3));
        System.out.println(str2 == str3);
    }
}